//
//  StatusNormalCell.swift
//  MicroBlog
//
//  Created by  NorthCity on 15/11/11.
//  Copyright © 2015年  NorthCity. All rights reserved.
//

import UIKit

class StatusNormalCell: StatusCell {
    
    override  var viewModel:StatusViewModel?{
        didSet{
            pictureView.snp_updateConstraints { (make) -> Void in
                let offset  = viewModel?.thumbnailUrls?.count == 0 ? 0:StatusCellMargin
                make.top.equalTo(contentLabel.snp_bottom).offset(offset)
            }

        }
    }
    
    
    
    override func setUpUI() {
        super.setUpUI()
        
        pictureView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(contentLabel.snp_bottom).offset(StatusCellMargin)
            make.left.equalTo(contentLabel.snp_left)
            make.width.equalTo(300)
            make.height.equalTo(90)
        }

    }
}
